<style>
<!--
#tableadmin1 td {
 text-align: left;
}
-->
</style>

<?=form_open(base_url()."admin/interviews/edit_update") ?>

<table id="tableadmin1" >
<?php  foreach ($quary as $row):?>
	<tr>
		<td>Select Media:</td>
		<td>
		<?php 
		$radio1=array('name'=>'media',
							'value'=>'Interview');
		if($row->type == 'Interview' )
		$radio1 = array_merge($radio1,array('checked' => TRUE));
		else 
		$radio1 = array_merge($radio1,array('checked' => FALSE));
		$radio2=array('name'=>'media',
					'value'=>'Gossips');
		if($row->type == 'Gossips' )
		$radio2 = array_merge($radio2,array('checked' => TRUE));
		else 
		$radio2 = array_merge($radio2,array('checked' => FALSE));
		?>
		<?=form_radio($radio1) ?>Interview	 
		<?=form_radio($radio2) ?>Gossips</td>
	</tr>
	<tr>
		<td>Person Name:</td>
		<?php $person_name=array('name'=>'username',
								'value'=>$row->person_name
		); ?>
		<td><?=form_input($person_name) ?>	
		<?=form_hidden('hid',$hid); ?>
		</td>
	</tr>
	<tr>
		<td>Description:</td>
		<td>
		<textarea rows="" cols="" id="description" name="description"><?=$row->description ?></textarea>
		</td>
	</tr>
	<tr> 
		<td>Active:</td>
		<td><?=form_checkbox('active', '0', TRUE) ?></td>
	</tr>
	<tr>
		<td>On date:</td>
		<?php $ondate=array('value'=>$row->on_date,
							 'name'=>'date'
		); ?>
		<td><?=form_input($ondate) ?>[Ex:yyyy-mm-dd]</td>
	</tr>
	<tr>
		<td colspan='2' align='right'><input type='submit' value='Save'></td>
	</tr>
	<tr>
	</tr>
<? endforeach; ?>
</table>
<?=form_close() ?>
